<?php

declare(strict_types=1);

namespace App\Controller\Backend;

use App\Entity\Setting;
use App\Utils\Helper\ControllerHelper;
use Symfony\Component\HttpFoundation\Request;

final class SettingAdminController extends ControllerHelper {
    protected function preList (Request $request) {
        $object = $this->getDoctrine()->getRepository(Setting::class)->getCurrentSetting();
        return $this->redirectTo($object);
    }
}
